package cn.nexd.map.coreLocator;

import android.graphics.PointF;
import android.os.Environment;
import android.text.TextUtils;

import junit.framework.TestCase;

import org.json.JSONException;
import org.json.JSONObject;

import java.io.File;
import java.io.FileInputStream;
import java.io.InputStream;
import java.util.ArrayList;
import java.util.List;

import cn.nexd.map.location.utils.Log;

/**
 * 测试类，用来测试wifi信号的输入，与输出的结果，造成定位飘的原因
 * Created by lawrence on 2015/11/20.
 */
public class coreAlgorithmTest extends TestCase {

    private coreAlgorithm coreAlgorithm = new coreAlgorithm();

    private String configName = "101001230004";
    private String parentPath = Environment.getExternalStorageDirectory() + File.separator + "map_svg/10100123";
    private String floorId;
    private String x;
    private String y;
    private List<StringBuffer> stringBuffers = new ArrayList<>();

    public void testInitSet() throws Exception {
        InputStream opt = new FileInputStream(new File(parentPath + File.separator + configName + ".optparam"));
        InputStream wifilist = new FileInputStream(new File(parentPath + File.separator + configName + ".wifilist"));
        InputStream wp = new FileInputStream(new File(parentPath + File.separator + configName + ".wp"));
        coreAlgorithm.initSet(opt, wp, wifilist);
        this.floorSet();

        StringBuilder stringBuilder = new StringBuilder();

        stringBuilder.append("{\"d0:ee:07:28:e7:0a\":\"-47\",\"0c:82:68:f1:80:f4\":\"-39\",\"14:75:90:c8:83:be\":\"-69\",\"d4:ee:07:28:e7:0a\":\"-41\",\"d0:ee:07:25:cc:12\":\"-71\",\"80:89:17:55:07:50\":\"-68\",\"00:23:cd:49:49:52\":\"-83\",\"e0:05:c5:b3:d4:ee\":\"-70\",\"d4:ee:07:25:cc:12\":\"-70\"}");


        StringBuffer sb1 = new StringBuffer();
        sb1.append("{\n" +
                "\t\t\"f0:b0:52:17:b7:fc\":\"-71\",\n" +
                "\t\t\"f0:b0:52:57:b7:fc\":\"-71\",\n" +
                "\t\t\"f0:b0:52:57:b1:6c\":\"-48\",\n" +
                "\t\t\"f0:b0:52:17:b1:6c\":\"-48\",\n" +
                "\t\t\"f0:b0:52:06:06:2c\":\"-79\",\n" +
                "\t\t\"f0:b0:52:17:b3:3c\":\"-72\",\n" +
                "\t\t\"f0:b0:52:57:b3:3c\":\"-72\",\n" +
                "\t\t\"f0:b0:52:05:e5:9c\":\"-75\",\n" +
                "\t\t\"f0:b0:52:06:07:6c\":\"-73\",\n" +
                "\t\t\"f0:b0:52:46:07:6c\":\"-73\",\n" +
                "\t\t\"f0:b0:52:05:df:bc\":\"-75\",\n" +
                "\t\t\"f0:b0:52:45:df:bc\":\"-74\",\n" +
                "\t\t\"e0:10:7f:76:8f:0c\":\"-76\",\n" +
                "\t\t\"f0:b0:52:17:e6:3c\":\"-75\",\n" +
                "\t\t\"f0:b0:52:57:e6:3c\":\"-75\",\n" +
                "\t\t\"f0:b0:52:06:03:6c\":\"-77\",\n" +
                "\t\t\"e0:10:7f:36:8f:0c\":\"-71\",\n" +
                "\t\t\"f0:b0:52:45:e6:ec\":\"-76\",\n" +
                "\t\t\"f0:b0:52:05:e6:ec\":\"-76\",\n" +
                "\t\t\"f0:b0:52:57:b7:f8\":\"-57\",\n" +
                "\t\t\"00:1f:7a:a1:32:f8\":\"-81\",\n" +
                "\t\t\"00:1f:7a:a1:32:f9\":\"-81\",\n" +
                "\t\t\"f0:b0:52:17:b7:f8\":\"-63\",\n" +
                "\t\t\"d0:ee:07:2e:40:00\":\"-64\",\n" +
                "\t\t\"c4:10:8a:01:f1:4c\":\"-89\",\n" +
                "\t\t\"84:18:3a:53:56:1c\":\"-66\",\n" +
                "\t\t\"84:18:3a:13:56:1c\":\"-66\",\n" +
                "\t\t\"28:2c:b2:9f:bb:24\":\"-68\",\n" +
                "\t\t\"f0:b0:52:46:03:6c\":\"-77\",\n" +
                "\t\t\"f0:b0:52:06:0d:8c\":\"-67\",\n" +
                "\t\t\"f0:b0:52:46:0d:8c\":\"-67\",\n" +
                "\t\t\"00:11:7f:03:fc:d3\":\"-71\",\n" +
                "\t\t\"f0:b0:52:46:06:2c\":\"-79\",\n" +
                "\t\t\"f0:b0:52:57:e6:5c\":\"-75\",\n" +
                "\t\t\"f0:b0:52:17:e6:5c\":\"-75\",\n" +
                "\t\t\"f0:b0:52:57:a7:a8\":\"-62\",\n" +
                "\t\t\"f0:b0:52:57:e3:7c\":\"-80\",\n" +
                "\t\t\"f0:b0:52:17:e3:7c\":\"-79\",\n" +
                "\t\t\"c0:61:18:d9:bf:20\":\"-75\",\n" +
                "\t\t\"f0:b0:52:06:09:dc\":\"-71\",\n" +
                "\t\t\"f0:b0:52:46:09:dc\":\"-71\",\n" +
                "\t\t\"f0:b0:52:17:b9:9c\":\"-77\",\n" +
                "\t\t\"f0:b0:52:57:b9:9c\":\"-77\",\n" +
                "\t\t\"f0:b0:52:57:b5:3c\":\"-75\",\n" +
                "\t\t\"f0:b0:52:17:b5:3c\":\"-75\",\n" +
                "\t\t\"f0:b0:52:57:84:7c\":\"-81\",\n" +
                "\t\t\"f0:b0:52:17:84:7c\":\"-80\",\n" +
                "\t\t\"f0:b0:52:45:f2:3c\":\"-77\",\n" +
                "\t\t\"f0:b0:52:05:f2:3c\":\"-78\",\n" +
                "\t\t\"c4:10:8a:41:f1:4c\":\"-88\",\n" +
                "\t\t\"f0:b0:52:45:df:b8\":\"-78\",\n" +
                "\t\t\"f0:b0:52:05:df:b8\":\"-70\",\n" +
                "\t\t\"50:a7:33:20:d8:08\":\"-72\",\n" +
                "\t\t\"40:a5:ef:00:0d:6c\":\"-68\",\n" +
                "\t\t\"f0:b0:52:05:f9:8c\":\"-69\",\n" +
                "\t\t\"f0:b0:52:45:f9:8c\":\"-69\",\n" +
                "\t\t\"f0:b0:52:06:05:8c\":\"-74\",\n" +
                "\t\t\"f0:b0:52:46:05:8c\":\"-74\",\n" +
                "\t\t\"16:14:4b:62:13:d5\":\"-73\",\n" +
                "\t\t\"16:14:4b:62:13:d4\":\"-73\",\n" +
                "\t\t\"00:1f:7a:aa:00:27\":\"-87\",\n" +
                "\t\t\"00:1f:7a:aa:00:22\":\"-88\",\n" +
                "\t\t\"f0:b0:52:17:ae:9c\":\"-71\",\n" +
                "\t\t\"f0:b0:52:57:ae:9c\":\"-70\",\n" +
                "\t\t\"f0:b0:52:57:a9:7c\":\"-82\",\n" +
                "\t\t\"16:14:4b:62:13:d3\":\"-73\",\n" +
                "\t\t\"00:1f:7a:aa:00:23\":\"-88\",\n" +
                "\t\t\"d4:ee:07:2e:40:00\":\"-68\",\n" +
                "\t\t\"f0:b0:52:45:e5:9c\":\"-76\",\n" +
                "\t\t\"50:a7:33:60:d8:08\":\"-72\",\n" +
                "\t\t\"f0:b0:52:17:e5:e8\":\"-73\",\n" +
                "\t\t\"f0:b0:52:57:a7:ac\":\"-78\",\n" +
                "\t\t\"f0:b0:52:17:a7:ac\":\"-78\",\n" +
                "\t\t\"f0:b0:52:57:e1:cc\":\"-80\",\n" +
                "\t\t\"f0:b0:52:17:a9:7c\":\"-75\",\n" +
                "\t\t\"f0:b0:52:17:e1:cc\":\"-78\",\n" +
                "\t\t\"84:18:3a:54:61:7c\":\"-73\",\n" +
                "\t\t\"f0:b0:52:46:0f:dc\":\"-82\",\n" +
                "\t\t\"f0:b0:52:06:0f:dc\":\"-82\",\n" +
                "\t\t\"84:18:3a:14:61:7c\":\"-79\",\n" +
                "\t\t\"f0:b0:52:57:b9:0c\":\"-84\",\n" +
                "\t\t\"f0:b0:52:57:ab:7c\":\"-83\",\n" +
                "\t\t\"f0:b0:52:17:ab:7c\":\"-79\",\n" +
                "\t\t\"f0:b0:52:17:b9:0c\":\"-83\",\n" +
                "\t\t\"fc:d7:33:f2:47:b6\":\"-85\",\n" +
                "\t\t\"80:89:17:b5:86:42\":\"-76\",\n" +
                "\t\t\"88:25:93:4e:46:66\":\"-75\",\n" +
                "\t\t\"c8:3a:35:44:cc:68\":\"-75\",\n" +
                "\t\t\"be:fc:01:3b:3e:18\":\"-76\",\n" +
                "\t\t\"f0:b0:52:17:a7:a8\":\"-63\",\n" +
                "\t\t\"84:18:3a:53:91:fc\":\"-70\",\n" +
                "\t\t\"84:18:3a:13:91:fc\":\"-70\",\n" +
                "\t\t\"e0:10:7f:78:14:fc\":\"-84\",\n" +
                "\t\t\"e4:d3:32:47:bd:94\":\"-66\",\n" +
                "\t\t\"8e:d7:33:f2:47:b6\":\"-71\",\n" +
                "\t\t\"56:14:4b:62:87:e8\":\"-73\",\n" +
                "\t\t\"c6:14:4b:57:d4:ef\":\"-75\",\n" +
                "\t\t\"84:74:2a:b4:60:94\":\"-76\",\n" +
                "\t\t\"76:74:2a:b4:60:94\":\"-76\",\n" +
                "\t\t\"84:18:3a:54:61:78\":\"-65\",\n" +
                "\t\t\"84:18:3a:14:61:78\":\"-66\",\n" +
                "\t\t\"f0:b0:52:45:da:5c\":\"-74\",\n" +
                "\t\t\"f0:b0:52:05:da:5c\":\"-75\",\n" +
                "\t\t\"16:14:4b:62:13:d2\":\"-71\",\n" +
                "\t\t\"c6:14:4b:57:d4:ee\":\"-74\",\n" +
                "\t\t\"c6:14:4b:57:d4:e0\":\"-74\",\n" +
                "\t\t\"96:14:4b:62:44:bb\":\"-74\",\n" +
                "\t\t\"56:14:4b:62:87:e6\":\"-74\",\n" +
                "\t\t\"96:14:4b:62:44:bd\":\"-74\",\n" +
                "\t\t\"96:14:4b:62:44:ba\":\"-75\",\n" +
                "\t\t\"f0:b0:52:54:57:38\":\"-76\",\n" +
                "\t\t\"f0:b0:52:14:57:38\":\"-77\",\n" +
                "\t\t\"f0:b0:52:17:cb:dc\":\"-84\",\n" +
                "\t\t\"f0:b0:52:57:cb:dc\":\"-85\",\n" +
                "\t\t\"f0:b0:52:17:b8:7c\":\"-90\"}");
        StringBuffer sb2 = new StringBuffer();
        sb2.append("{\n" +
                "\t\t\"f0:b0:52:17:b7:fc\":\"-65\",\n" +
                "\t\t\"f0:b0:52:57:b7:fc\":\"-65\",\n" +
                "\t\t\"f0:b0:52:57:b1:6c\":\"-48\",\n" +
                "\t\t\"f0:b0:52:17:b1:6c\":\"-48\",\n" +
                "\t\t\"f0:b0:52:06:06:2c\":\"-75\",\n" +
                "\t\t\"f0:b0:52:17:b3:3c\":\"-72\",\n" +
                "\t\t\"f0:b0:52:57:b3:3c\":\"-72\",\n" +
                "\t\t\"f0:b0:52:05:e5:9c\":\"-76\",\n" +
                "\t\t\"f0:b0:52:06:07:6c\":\"-74\",\n" +
                "\t\t\"f0:b0:52:46:07:6c\":\"-74\",\n" +
                "\t\t\"f0:b0:52:05:df:bc\":\"-75\",\n" +
                "\t\t\"f0:b0:52:45:df:bc\":\"-74\",\n" +
                "\t\t\"e0:10:7f:76:8f:0c\":\"-76\",\n" +
                "\t\t\"f0:b0:52:17:e6:3c\":\"-74\",\n" +
                "\t\t\"f0:b0:52:57:e6:3c\":\"-74\",\n" +
                "\t\t\"f0:b0:52:06:03:6c\":\"-74\",\n" +
                "\t\t\"e0:10:7f:36:8f:0c\":\"-71\",\n" +
                "\t\t\"f0:b0:52:45:e6:ec\":\"-76\",\n" +
                "\t\t\"f0:b0:52:05:e6:ec\":\"-75\",\n" +
                "\t\t\"f0:b0:52:57:b3:38\":\"-82\",\n" +
                "\t\t\"f0:b0:52:57:b7:f8\":\"-62\",\n" +
                "\t\t\"00:1f:7a:a1:32:f8\":\"-87\",\n" +
                "\t\t\"00:1f:7a:a1:32:f9\":\"-85\",\n" +
                "\t\t\"f0:b0:52:17:b7:f8\":\"-63\",\n" +
                "\t\t\"d0:ee:07:2e:40:00\":\"-69\",\n" +
                "\t\t\"c4:10:8a:01:f1:4c\":\"-85\",\n" +
                "\t\t\"84:18:3a:53:56:1c\":\"-68\",\n" +
                "\t\t\"84:18:3a:13:56:1c\":\"-66\",\n" +
                "\t\t\"28:2c:b2:9f:bb:24\":\"-66\",\n" +
                "\t\t\"f0:b0:52:17:b3:38\":\"-66\",\n" +
                "\t\t\"f0:b0:52:46:03:6c\":\"-73\",\n" +
                "\t\t\"f0:b0:52:06:0d:8c\":\"-68\",\n" +
                "\t\t\"f0:b0:52:46:0d:8c\":\"-68\",\n" +
                "\t\t\"00:11:7f:03:fc:d3\":\"-71\",\n" +
                "\t\t\"f0:b0:52:46:06:2c\":\"-75\",\n" +
                "\t\t\"f0:b0:52:57:e6:5c\":\"-75\",\n" +
                "\t\t\"f0:b0:52:17:e6:5c\":\"-75\",\n" +
                "\t\t\"f0:b0:52:57:a7:a8\":\"-68\",\n" +
                "\t\t\"f0:b0:52:57:e3:7c\":\"-80\",\n" +
                "\t\t\"f0:b0:52:17:e3:7c\":\"-79\",\n" +
                "\t\t\"c0:61:18:d9:bf:20\":\"-75\",\n" +
                "\t\t\"f0:b0:52:06:09:dc\":\"-71\",\n" +
                "\t\t\"f0:b0:52:46:09:dc\":\"-71\",\n" +
                "\t\t\"f0:b0:52:17:b9:9c\":\"-79\",\n" +
                "\t\t\"f0:b0:52:57:b9:9c\":\"-79\",\n" +
                "\t\t\"f0:b0:52:57:b5:3c\":\"-75\",\n" +
                "\t\t\"f0:b0:52:17:b5:3c\":\"-75\",\n" +
                "\t\t\"f0:b0:52:17:ba:ac\":\"-78\",\n" +
                "\t\t\"f0:b0:52:57:84:7c\":\"-78\",\n" +
                "\t\t\"f0:b0:52:17:84:7c\":\"-78\",\n" +
                "\t\t\"f0:b0:52:45:f2:3c\":\"-77\",\n" +
                "\t\t\"f0:b0:52:05:f2:3c\":\"-78\",\n" +
                "\t\t\"c4:10:8a:41:f1:4c\":\"-87\",\n" +
                "\t\t\"f0:b0:52:45:df:b8\":\"-78\",\n" +
                "\t\t\"f0:b0:52:05:df:b8\":\"-70\",\n" +
                "\t\t\"50:a7:33:20:d8:08\":\"-72\",\n" +
                "\t\t\"f0:b0:52:06:01:fc\":\"-79\",\n" +
                "\t\t\"40:a5:ef:00:0d:6c\":\"-68\",\n" +
                "\t\t\"f0:b0:52:05:f9:8c\":\"-68\",\n" +
                "\t\t\"f0:b0:52:45:f9:8c\":\"-67\",\n" +
                "\t\t\"f0:b0:52:06:05:8c\":\"-73\",\n" +
                "\t\t\"f0:b0:52:46:05:8c\":\"-72\",\n" +
                "\t\t\"16:14:4b:62:13:d5\":\"-79\",\n" +
                "\t\t\"f0:b0:52:17:e3:e8\":\"-77\",\n" +
                "\t\t\"16:14:4b:62:13:d4\":\"-78\",\n" +
                "\t\t\"00:1f:7a:aa:00:27\":\"-87\",\n" +
                "\t\t\"00:1f:7a:aa:00:22\":\"-88\",\n" +
                "\t\t\"24:de:c6:cb:fe:b9\":\"-89\",\n" +
                "\t\t\"f0:b0:52:17:ae:9c\":\"-69\",\n" +
                "\t\t\"f0:b0:52:57:ae:9c\":\"-69\",\n" +
                "\t\t\"f0:b0:52:46:01:fc\":\"-78\",\n" +
                "\t\t\"f0:b0:52:57:ba:ac\":\"-78\",\n" +
                "\t\t\"f0:b0:52:57:a9:7c\":\"-82\",\n" +
                "\t\t\"f0:b0:52:57:e3:e8\":\"-78\",\n" +
                "\t\t\"16:14:4b:62:13:d3\":\"-80\",\n" +
                "\t\t\"00:1f:7a:aa:00:23\":\"-88\",\n" +
                "\t\t\"d4:ee:07:2e:40:00\":\"-68\",\n" +
                "\t\t\"f0:b0:52:45:e5:9c\":\"-75\",\n" +
                "\t\t\"50:a7:33:60:d8:08\":\"-72\",\n" +
                "\t\t\"f0:b0:52:17:e5:e8\":\"-73\",\n" +
                "\t\t\"f0:b0:52:57:a7:ac\":\"-78\",\n" +
                "\t\t\"f0:b0:52:17:a7:ac\":\"-78\",\n" +
                "\t\t\"f0:b0:52:57:e1:cc\":\"-80\",\n" +
                "\t\t\"f0:b0:52:17:a9:7c\":\"-80\",\n" +
                "\t\t\"f0:b0:52:17:e1:cc\":\"-80\",\n" +
                "\t\t\"84:18:3a:54:61:7c\":\"-82\",\n" +
                "\t\t\"f0:b0:52:46:0f:dc\":\"-82\",\n" +
                "\t\t\"f0:b0:52:06:0f:dc\":\"-82\",\n" +
                "\t\t\"84:18:3a:14:61:7c\":\"-82\",\n" +
                "\t\t\"f0:b0:52:57:b9:0c\":\"-84\",\n" +
                "\t\t\"f0:b0:52:57:ab:7c\":\"-83\",\n" +
                "\t\t\"f0:b0:52:17:ab:7c\":\"-83\",\n" +
                "\t\t\"f0:b0:52:17:b9:0c\":\"-83\",\n" +
                "\t\t\"fc:d7:33:f2:47:b6\":\"-71\",\n" +
                "\t\t\"80:89:17:b5:86:42\":\"-73\",\n" +
                "\t\t\"88:25:93:4e:46:66\":\"-75\",\n" +
                "\t\t\"c8:3a:35:44:cc:68\":\"-75\",\n" +
                "\t\t\"be:fc:01:3b:3e:18\":\"-76\",\n" +
                "\t\t\"f0:b0:52:17:a7:a8\":\"-68\",\n" +
                "\t\t\"84:18:3a:53:91:fc\":\"-82\",\n" +
                "\t\t\"84:18:3a:13:91:fc\":\"-82\",\n" +
                "\t\t\"e0:10:7f:78:14:fc\":\"-84\"}");
        StringBuffer sb3 = new StringBuffer();
        sb3.append("{\n" +
                "\t\t\"f0:b0:52:17:b7:fc\":\"-61\",\n" +
                "\t\t\"f0:b0:52:57:b7:fc\":\"-62\",\n" +
                "\t\t\"f0:b0:52:57:b1:6c\":\"-44\",\n" +
                "\t\t\"f0:b0:52:17:b1:6c\":\"-44\",\n" +
                "\t\t\"f0:b0:52:06:06:2c\":\"-75\",\n" +
                "\t\t\"f0:b0:52:17:b3:3c\":\"-71\",\n" +
                "\t\t\"f0:b0:52:57:b3:3c\":\"-72\",\n" +
                "\t\t\"f0:b0:52:05:e5:9c\":\"-75\",\n" +
                "\t\t\"f0:b0:52:06:07:6c\":\"-74\",\n" +
                "\t\t\"f0:b0:52:46:07:6c\":\"-74\",\n" +
                "\t\t\"f0:b0:52:05:df:bc\":\"-75\",\n" +
                "\t\t\"f0:b0:52:45:df:bc\":\"-77\",\n" +
                "\t\t\"e0:10:7f:76:8f:0c\":\"-71\",\n" +
                "\t\t\"f0:b0:52:17:e6:3c\":\"-75\",\n" +
                "\t\t\"f0:b0:52:57:e6:3c\":\"-75\",\n" +
                "\t\t\"f0:b0:52:06:03:6c\":\"-73\",\n" +
                "\t\t\"e0:10:7f:36:8f:0c\":\"-71\",\n" +
                "\t\t\"f0:b0:52:45:e6:ec\":\"-70\",\n" +
                "\t\t\"f0:b0:52:05:e6:ec\":\"-72\",\n" +
                "\t\t\"f0:b0:52:57:b3:38\":\"-82\",\n" +
                "\t\t\"f0:b0:52:57:b7:f8\":\"-66\",\n" +
                "\t\t\"00:1f:7a:a1:32:f8\":\"-89\",\n" +
                "\t\t\"00:1f:7a:a1:32:f9\":\"-87\",\n" +
                "\t\t\"f0:b0:52:17:b7:f8\":\"-63\",\n" +
                "\t\t\"d0:ee:07:2e:40:00\":\"-69\",\n" +
                "\t\t\"c4:10:8a:01:f1:4c\":\"-85\",\n" +
                "\t\t\"84:18:3a:53:56:1c\":\"-67\",\n" +
                "\t\t\"84:18:3a:13:56:1c\":\"-67\",\n" +
                "\t\t\"28:2c:b2:9f:bb:24\":\"-62\",\n" +
                "\t\t\"f0:b0:52:17:b3:38\":\"-66\",\n" +
                "\t\t\"f0:b0:52:46:03:6c\":\"-72\",\n" +
                "\t\t\"f0:b0:52:06:0d:8c\":\"-69\",\n" +
                "\t\t\"f0:b0:52:46:0d:8c\":\"-69\",\n" +
                "\t\t\"00:11:7f:03:fc:d3\":\"-71\",\n" +
                "\t\t\"f0:b0:52:46:06:2c\":\"-73\",\n" +
                "\t\t\"f0:b0:52:57:e6:5c\":\"-74\",\n" +
                "\t\t\"f0:b0:52:17:e6:5c\":\"-74\",\n" +
                "\t\t\"f0:b0:52:05:da:5c\":\"-74\",\n" +
                "\t\t\"f0:b0:52:57:a7:a8\":\"-66\",\n" +
                "\t\t\"f0:b0:52:57:e3:7c\":\"-77\",\n" +
                "\t\t\"f0:b0:52:17:e3:7c\":\"-78\",\n" +
                "\t\t\"c0:61:18:d9:bf:20\":\"-73\",\n" +
                "\t\t\"f0:b0:52:06:09:dc\":\"-72\",\n" +
                "\t\t\"f0:b0:52:46:09:dc\":\"-73\",\n" +
                "\t\t\"f0:b0:52:17:b9:9c\":\"-79\",\n" +
                "\t\t\"f0:b0:52:57:b9:9c\":\"-77\",\n" +
                "\t\t\"f0:b0:52:57:b5:3c\":\"-75\",\n" +
                "\t\t\"f0:b0:52:17:b5:3c\":\"-75\",\n" +
                "\t\t\"f0:b0:52:17:ba:ac\":\"-78\",\n" +
                "\t\t\"f0:b0:52:57:84:7c\":\"-73\",\n" +
                "\t\t\"f0:b0:52:17:84:7c\":\"-78\",\n" +
                "\t\t\"f0:b0:52:45:f2:3c\":\"-81\",\n" +
                "\t\t\"f0:b0:52:05:f2:3c\":\"-80\",\n" +
                "\t\t\"50:a7:33:60:d5:5c\":\"-84\",\n" +
                "\t\t\"c4:10:8a:41:f1:4c\":\"-86\",\n" +
                "\t\t\"00:1f:7a:a1:32:fd\":\"-85\",\n" +
                "\t\t\"f0:b0:52:45:df:b8\":\"-68\",\n" +
                "\t\t\"f0:b0:52:05:df:b8\":\"-70\",\n" +
                "\t\t\"f0:b0:52:17:c7:98\":\"-74\",\n" +
                "\t\t\"f0:b0:52:57:c7:98\":\"-73\",\n" +
                "\t\t\"50:a7:33:20:d8:08\":\"-72\",\n" +
                "\t\t\"f0:b0:52:06:01:fc\":\"-79\",\n" +
                "\t\t\"f0:b0:52:57:cb:dc\":\"-86\",\n" +
                "\t\t\"40:a5:ef:00:0d:6c\":\"-68\",\n" +
                "\t\t\"8e:d7:33:f2:47:b6\":\"-72\",\n" +
                "\t\t\"a8:57:4e:b1:f0:c0\":\"-77\",\n" +
                "\t\t\"f0:b0:52:05:f9:8c\":\"-69\",\n" +
                "\t\t\"f0:b0:52:45:f9:8c\":\"-70\",\n" +
                "\t\t\"f0:b0:52:06:05:8c\":\"-74\",\n" +
                "\t\t\"f0:b0:52:46:05:8c\":\"-73\",\n" +
                "\t\t\"16:14:4b:62:13:d5\":\"-79\",\n" +
                "\t\t\"f0:b0:52:17:e3:e8\":\"-77\",\n" +
                "\t\t\"f0:b0:52:17:d4:fc\":\"-86\",\n" +
                "\t\t\"16:14:4b:62:13:d4\":\"-78\",\n" +
                "\t\t\"00:1f:7a:aa:00:27\":\"-87\",\n" +
                "\t\t\"00:1f:7a:aa:00:22\":\"-88\",\n" +
                "\t\t\"24:de:c6:cb:fe:b9\":\"-89\",\n" +
                "\t\t\"f0:b0:52:17:ae:9c\":\"-69\",\n" +
                "\t\t\"f0:b0:52:57:ae:9c\":\"-69\",\n" +
                "\t\t\"f0:b0:52:46:01:fc\":\"-78\",\n" +
                "\t\t\"f0:b0:52:57:ba:ac\":\"-78\",\n" +
                "\t\t\"f0:b0:52:57:a9:7c\":\"-82\",\n" +
                "\t\t\"f0:b0:52:57:e3:e8\":\"-78\",\n" +
                "\t\t\"16:14:4b:62:13:d3\":\"-80\",\n" +
                "\t\t\"00:1f:7a:aa:00:23\":\"-88\",\n" +
                "\t\t\"d4:ee:07:2e:40:00\":\"-70\",\n" +
                "\t\t\"f0:b0:52:45:e5:9c\":\"-76\",\n" +
                "\t\t\"50:a7:33:60:d8:08\":\"-72\",\n" +
                "\t\t\"f0:b0:52:17:e5:e8\":\"-73\",\n" +
                "\t\t\"f0:b0:52:57:a7:ac\":\"-78\",\n" +
                "\t\t\"f0:b0:52:17:a7:ac\":\"-78\",\n" +
                "\t\t\"f0:b0:52:57:e1:cc\":\"-80\",\n" +
                "\t\t\"f0:b0:52:17:a9:7c\":\"-80\",\n" +
                "\t\t\"f0:b0:52:17:e1:cc\":\"-80\",\n" +
                "\t\t\"84:18:3a:54:61:7c\":\"-82\",\n" +
                "\t\t\"f0:b0:52:46:0f:dc\":\"-82\",\n" +
                "\t\t\"f0:b0:52:06:0f:dc\":\"-82\",\n" +
                "\t\t\"84:18:3a:14:61:7c\":\"-82\",\n" +
                "\t\t\"f0:b0:52:57:b9:0c\":\"-83\",\n" +
                "\t\t\"f0:b0:52:57:ab:7c\":\"-83\",\n" +
                "\t\t\"f0:b0:52:17:ab:7c\":\"-83\",\n" +
                "\t\t\"f0:b0:52:17:b9:0c\":\"-84\"}");
        StringBuffer sb4 = new StringBuffer();
        sb4.append("{\n" +
                "\t\t\"f0:b0:52:17:b7:fc\":\"-61\",\n" +
                "\t\t\"f0:b0:52:57:b7:fc\":\"-62\",\n" +
                "\t\t\"f0:b0:52:57:b1:6c\":\"-47\",\n" +
                "\t\t\"f0:b0:52:17:b1:6c\":\"-47\",\n" +
                "\t\t\"f0:b0:52:06:06:2c\":\"-74\",\n" +
                "\t\t\"f0:b0:52:17:b3:3c\":\"-76\",\n" +
                "\t\t\"f0:b0:52:57:b3:3c\":\"-74\",\n" +
                "\t\t\"f0:b0:52:05:e5:9c\":\"-77\",\n" +
                "\t\t\"f0:b0:52:06:07:6c\":\"-74\",\n" +
                "\t\t\"f0:b0:52:46:07:6c\":\"-74\",\n" +
                "\t\t\"f0:b0:52:05:df:bc\":\"-77\",\n" +
                "\t\t\"f0:b0:52:45:df:bc\":\"-77\",\n" +
                "\t\t\"e0:10:7f:76:8f:0c\":\"-75\",\n" +
                "\t\t\"f0:b0:52:17:e6:3c\":\"-75\",\n" +
                "\t\t\"f0:b0:52:57:e6:3c\":\"-75\",\n" +
                "\t\t\"f0:b0:52:06:03:6c\":\"-72\",\n" +
                "\t\t\"e0:10:7f:36:8f:0c\":\"-75\",\n" +
                "\t\t\"f0:b0:52:45:e6:ec\":\"-75\",\n" +
                "\t\t\"f0:b0:52:05:e6:ec\":\"-72\",\n" +
                "\t\t\"f0:b0:52:57:b3:38\":\"-82\",\n" +
                "\t\t\"f0:b0:52:57:b7:f8\":\"-67\",\n" +
                "\t\t\"00:1f:7a:a1:32:f8\":\"-86\",\n" +
                "\t\t\"00:1f:7a:a1:32:f9\":\"-86\",\n" +
                "\t\t\"f0:b0:52:17:b7:f8\":\"-77\",\n" +
                "\t\t\"d0:ee:07:2e:40:00\":\"-73\",\n" +
                "\t\t\"c4:10:8a:01:f1:4c\":\"-85\",\n" +
                "\t\t\"84:18:3a:53:56:1c\":\"-65\",\n" +
                "\t\t\"84:18:3a:13:56:1c\":\"-65\",\n" +
                "\t\t\"28:2c:b2:9f:bb:24\":\"-63\",\n" +
                "\t\t\"f0:b0:52:17:b3:38\":\"-66\",\n" +
                "\t\t\"f0:b0:52:46:03:6c\":\"-72\",\n" +
                "\t\t\"f0:b0:52:06:0d:8c\":\"-69\",\n" +
                "\t\t\"f0:b0:52:46:0d:8c\":\"-69\",\n" +
                "\t\t\"00:11:7f:03:fc:d3\":\"-69\",\n" +
                "\t\t\"f0:b0:52:46:06:2c\":\"-75\",\n" +
                "\t\t\"f0:b0:52:57:e6:5c\":\"-73\",\n" +
                "\t\t\"f0:b0:52:17:e6:5c\":\"-73\",\n" +
                "\t\t\"f0:b0:52:05:da:5c\":\"-74\",\n" +
                "\t\t\"f0:b0:52:57:a7:a8\":\"-66\",\n" +
                "\t\t\"f0:b0:52:57:e3:7c\":\"-75\",\n" +
                "\t\t\"f0:b0:52:17:e3:7c\":\"-75\",\n" +
                "\t\t\"c8:3a:35:44:cc:68\":\"-79\",\n" +
                "\t\t\"88:25:93:52:ed:fc\":\"-72\",\n" +
                "\t\t\"c0:61:18:d9:bf:20\":\"-72\",\n" +
                "\t\t\"f0:b0:52:06:09:dc\":\"-65\",\n" +
                "\t\t\"f0:b0:52:46:09:dc\":\"-66\",\n" +
                "\t\t\"f0:b0:52:17:b9:9c\":\"-78\",\n" +
                "\t\t\"f0:b0:52:57:b9:9c\":\"-77\",\n" +
                "\t\t\"f0:b0:52:57:b5:3c\":\"-73\",\n" +
                "\t\t\"f0:b0:52:17:b5:3c\":\"-73\",\n" +
                "\t\t\"f0:b0:52:17:ba:ac\":\"-78\",\n" +
                "\t\t\"f0:b0:52:57:84:7c\":\"-47\",\n" +
                "\t\t\"f0:b0:52:17:84:7c\":\"-78\",\n" +
                "\t\t\"f0:b0:52:45:f2:3c\":\"-80\",\n" +
                "\t\t\"f0:b0:52:05:f2:3c\":\"-80\",\n" +
                "\t\t\"50:a7:33:60:d5:5c\":\"-84\",\n" +
                "\t\t\"c4:10:8a:41:f1:4c\":\"-86\",\n" +
                "\t\t\"00:1f:7a:a1:32:fd\":\"-85\",\n" +
                "\t\t\"f0:b0:52:45:df:b8\":\"-68\",\n" +
                "\t\t\"f0:b0:52:05:df:b8\":\"-69\",\n" +
                "\t\t\"f0:b0:52:17:cb:dc\":\"-84\",\n" +
                "\t\t\"84:74:2a:b4:60:94\":\"-76\",\n" +
                "\t\t\"f0:b0:52:17:a7:a8\":\"-66\",\n" +
                "\t\t\"f0:b0:52:17:c7:98\":\"-74\",\n" +
                "\t\t\"f0:b0:52:57:c7:98\":\"-73\",\n" +
                "\t\t\"f0:b0:52:17:e5:ec\":\"-78\",\n" +
                "\t\t\"50:a7:33:20:d8:08\":\"-74\",\n" +
                "\t\t\"f0:b0:52:06:01:fc\":\"-79\",\n" +
                "\t\t\"f0:b0:52:57:e5:ec\":\"-80\",\n" +
                "\t\t\"f0:b0:52:17:ba:a8\":\"-76\",\n" +
                "\t\t\"f0:b0:52:57:cb:dc\":\"-86\",\n" +
                "\t\t\"40:a5:ef:00:0d:6c\":\"-69\",\n" +
                "\t\t\"8e:d7:33:f2:47:b6\":\"-72\",\n" +
                "\t\t\"a8:57:4e:b1:f0:c0\":\"-77\",\n" +
                "\t\t\"f0:b0:52:05:f9:8c\":\"-69\",\n" +
                "\t\t\"f0:b0:52:45:f9:8c\":\"-70\",\n" +
                "\t\t\"f0:b0:52:06:05:8c\":\"-74\",\n" +
                "\t\t\"f0:b0:52:46:05:8c\":\"-75\",\n" +
                "\t\t\"16:14:4b:62:13:d5\":\"-79\",\n" +
                "\t\t\"f0:b0:52:17:e3:e8\":\"-77\",\n" +
                "\t\t\"f0:b0:52:17:d4:fc\":\"-86\",\n" +
                "\t\t\"16:14:4b:62:13:d4\":\"-78\",\n" +
                "\t\t\"00:1f:7a:aa:00:27\":\"-87\",\n" +
                "\t\t\"00:1f:7a:aa:00:22\":\"-88\",\n" +
                "\t\t\"24:de:c6:cb:fe:b9\":\"-89\",\n" +
                "\t\t\"f0:b0:52:17:ae:9c\":\"-68\",\n" +
                "\t\t\"f0:b0:52:57:ae:9c\":\"-68\",\n" +
                "\t\t\"f0:b0:52:46:01:fc\":\"-78\",\n" +
                "\t\t\"f0:b0:52:57:ba:ac\":\"-78\",\n" +
                "\t\t\"f0:b0:52:57:a9:7c\":\"-79\",\n" +
                "\t\t\"f0:b0:52:57:e3:e8\":\"-78\",\n" +
                "\t\t\"16:14:4b:62:13:d3\":\"-80\",\n" +
                "\t\t\"00:1f:7a:aa:00:23\":\"-88\"}");
        StringBuffer sb5 = new StringBuffer();
        sb5.append("{\n" +
                "\t\t\"f0:b0:52:17:b7:fc\":\"-61\",\n" +
                "\t\t\"f0:b0:52:57:b7:fc\":\"-60\",\n" +
                "\t\t\"f0:b0:52:57:b1:6c\":\"-43\",\n" +
                "\t\t\"f0:b0:52:17:b1:6c\":\"-43\",\n" +
                "\t\t\"f0:b0:52:06:06:2c\":\"-76\",\n" +
                "\t\t\"f0:b0:52:17:b3:3c\":\"-74\",\n" +
                "\t\t\"f0:b0:52:57:b3:3c\":\"-76\",\n" +
                "\t\t\"f0:b0:52:05:e5:9c\":\"-77\",\n" +
                "\t\t\"f0:b0:52:45:e5:9c\":\"-74\",\n" +
                "\t\t\"f0:b0:52:06:07:6c\":\"-73\",\n" +
                "\t\t\"f0:b0:52:46:07:6c\":\"-76\",\n" +
                "\t\t\"f0:b0:52:05:df:bc\":\"-73\",\n" +
                "\t\t\"f0:b0:52:45:df:bc\":\"-77\",\n" +
                "\t\t\"e0:10:7f:76:8f:0c\":\"-75\",\n" +
                "\t\t\"f0:b0:52:17:e6:3c\":\"-74\",\n" +
                "\t\t\"f0:b0:52:57:e6:3c\":\"-75\",\n" +
                "\t\t\"f0:b0:52:06:03:6c\":\"-71\",\n" +
                "\t\t\"e0:10:7f:36:8f:0c\":\"-74\",\n" +
                "\t\t\"f0:b0:52:45:e6:ec\":\"-77\",\n" +
                "\t\t\"f0:b0:52:05:e6:ec\":\"-76\",\n" +
                "\t\t\"f0:b0:52:57:b3:38\":\"-69\",\n" +
                "\t\t\"f0:b0:52:57:b7:f8\":\"-67\",\n" +
                "\t\t\"00:1f:7a:a1:32:f8\":\"-84\",\n" +
                "\t\t\"00:1f:7a:a1:32:f9\":\"-84\",\n" +
                "\t\t\"f0:b0:52:17:b7:f8\":\"-67\",\n" +
                "\t\t\"d0:ee:07:2e:40:00\":\"-74\",\n" +
                "\t\t\"c4:10:8a:01:f1:4c\":\"-87\",\n" +
                "\t\t\"84:18:3a:53:56:1c\":\"-65\",\n" +
                "\t\t\"84:18:3a:13:56:1c\":\"-65\",\n" +
                "\t\t\"28:2c:b2:9f:bb:24\":\"-65\",\n" +
                "\t\t\"f0:b0:52:17:b3:38\":\"-68\",\n" +
                "\t\t\"f0:b0:52:46:03:6c\":\"-73\",\n" +
                "\t\t\"f0:b0:52:06:0d:8c\":\"-71\",\n" +
                "\t\t\"f0:b0:52:46:0d:8c\":\"-72\",\n" +
                "\t\t\"00:11:7f:03:fc:d3\":\"-67\",\n" +
                "\t\t\"f0:b0:52:46:06:2c\":\"-78\",\n" +
                "\t\t\"84:18:3a:13:91:fc\":\"-77\",\n" +
                "\t\t\"f0:b0:52:57:e6:5c\":\"-71\",\n" +
                "\t\t\"f0:b0:52:17:e6:5c\":\"-73\",\n" +
                "\t\t\"f0:b0:52:45:da:5c\":\"-80\",\n" +
                "\t\t\"f0:b0:52:05:da:5c\":\"-74\",\n" +
                "\t\t\"e4:d3:32:47:bd:94\":\"-64\",\n" +
                "\t\t\"f0:b0:52:57:a7:a8\":\"-68\",\n" +
                "\t\t\"84:18:3a:14:61:7c\":\"-78\",\n" +
                "\t\t\"84:18:3a:54:61:7c\":\"-77\",\n" +
                "\t\t\"f0:b0:52:57:e3:7c\":\"-75\",\n" +
                "\t\t\"f0:b0:52:17:e3:7c\":\"-76\",\n" +
                "\t\t\"d4:ee:07:2e:40:00\":\"-67\",\n" +
                "\t\t\"c8:3a:35:44:cc:68\":\"-79\",\n" +
                "\t\t\"84:18:3a:53:91:fc\":\"-77\",\n" +
                "\t\t\"88:25:93:52:ed:fc\":\"-72\",\n" +
                "\t\t\"c0:61:18:d9:bf:20\":\"-72\",\n" +
                "\t\t\"80:89:17:b5:86:42\":\"-75\",\n" +
                "\t\t\"f0:b0:52:06:09:dc\":\"-65\",\n" +
                "\t\t\"f0:b0:52:46:09:dc\":\"-66\",\n" +
                "\t\t\"f0:b0:52:17:b9:9c\":\"-77\",\n" +
                "\t\t\"f0:b0:52:57:b9:9c\":\"-76\",\n" +
                "\t\t\"f0:b0:52:57:b5:3c\":\"-75\",\n" +
                "\t\t\"f0:b0:52:17:b5:3c\":\"-75\",\n" +
                "\t\t\"f0:b0:52:17:a9:7c\":\"-79\",\n" +
                "\t\t\"f0:b0:52:17:ba:ac\":\"-78\",\n" +
                "\t\t\"f0:b0:52:57:84:7c\":\"-78\",\n" +
                "\t\t\"f0:b0:52:17:84:7c\":\"-78\",\n" +
                "\t\t\"f0:b0:52:45:f2:3c\":\"-81\",\n" +
                "\t\t\"f0:b0:52:14:57:38\":\"-79\",\n" +
                "\t\t\"f0:b0:52:05:f2:3c\":\"-81\",\n" +
                "\t\t\"f6:14:4b:57:d5:a0\":\"-80\",\n" +
                "\t\t\"50:a7:33:60:d5:5c\":\"-84\",\n" +
                "\t\t\"c4:10:8a:41:f1:4c\":\"-88\",\n" +
                "\t\t\"84:18:3a:0c:a7:dc\":\"-88\",\n" +
                "\t\t\"74:1e:93:61:2f:88\":\"-80\",\n" +
                "\t\t\"00:1f:7a:a1:32:fd\":\"-85\",\n" +
                "\t\t\"84:18:3a:14:61:78\":\"-68\",\n" +
                "\t\t\"a4:fb:8d:01:13:3d\":\"-73\",\n" +
                "\t\t\"f0:b0:52:45:df:b8\":\"-68\",\n" +
                "\t\t\"f0:b0:52:05:df:b8\":\"-74\",\n" +
                "\t\t\"f0:b0:52:17:e1:cc\":\"-81\",\n" +
                "\t\t\"f0:b0:52:57:e1:cc\":\"-81\",\n" +
                "\t\t\"50:a7:33:20:d8:0c\":\"-81\",\n" +
                "\t\t\"f0:b0:52:17:cb:dc\":\"-84\",\n" +
                "\t\t\"50:a7:33:20:d5:5c\":\"-83\",\n" +
                "\t\t\"e6:14:4b:54:47:a2\":\"-80\",\n" +
                "\t\t\"84:74:2a:b4:60:94\":\"-76\",\n" +
                "\t\t\"f0:b0:52:17:a7:a8\":\"-66\",\n" +
                "\t\t\"f0:b0:52:17:c7:98\":\"-74\",\n" +
                "\t\t\"f0:b0:52:57:c7:98\":\"-73\",\n" +
                "\t\t\"f0:b0:52:17:e5:ec\":\"-78\",\n" +
                "\t\t\"50:a7:33:20:d8:08\":\"-74\",\n" +
                "\t\t\"f0:b0:52:06:01:fc\":\"-80\",\n" +
                "\t\t\"f0:b0:52:57:e5:ec\":\"-80\",\n" +
                "\t\t\"f0:b0:52:17:ba:a8\":\"-76\",\n" +
                "\t\t\"f0:b0:52:57:cb:dc\":\"-86\",\n" +
                "\t\t\"40:a5:ef:00:0d:6c\":\"-71\",\n" +
                "\t\t\"8e:d7:33:f2:47:b6\":\"-72\",\n" +
                "\t\t\"a8:57:4e:b1:f0:c0\":\"-77\",\n" +
                "\t\t\"f0:b0:52:05:f9:8c\":\"-69\",\n" +
                "\t\t\"f0:b0:52:45:f9:8c\":\"-70\",\n" +
                "\t\t\"f0:b0:52:06:05:8c\":\"-74\",\n" +
                "\t\t\"f0:b0:52:46:05:8c\":\"-75\",\n" +
                "\t\t\"16:14:4b:62:13:d5\":\"-74\",\n" +
                "\t\t\"f0:b0:52:17:e3:e8\":\"-77\",\n" +
                "\t\t\"f0:b0:52:17:d4:fc\":\"-86\"}");
        StringBuffer sb6 = new StringBuffer();
        sb6.append("{\n" +
                "\t\t\"f0:b0:52:17:b7:fc\":\"-61\",\n" +
                "\t\t\"f0:b0:52:57:b7:fc\":\"-62\",\n" +
                "\t\t\"f0:b0:52:57:b1:6c\":\"-47\",\n" +
                "\t\t\"f0:b0:52:17:b1:6c\":\"-47\",\n" +
                "\t\t\"f0:b0:52:06:06:2c\":\"-74\",\n" +
                "\t\t\"f0:b0:52:17:b3:3c\":\"-76\",\n" +
                "\t\t\"f0:b0:52:57:b3:3c\":\"-74\",\n" +
                "\t\t\"f0:b0:52:05:e5:9c\":\"-77\",\n" +
                "\t\t\"f0:b0:52:06:07:6c\":\"-74\",\n" +
                "\t\t\"f0:b0:52:46:07:6c\":\"-74\",\n" +
                "\t\t\"f0:b0:52:05:df:bc\":\"-77\",\n" +
                "\t\t\"f0:b0:52:45:df:bc\":\"-77\",\n" +
                "\t\t\"e0:10:7f:76:8f:0c\":\"-75\",\n" +
                "\t\t\"f0:b0:52:17:e6:3c\":\"-75\",\n" +
                "\t\t\"f0:b0:52:57:e6:3c\":\"-75\",\n" +
                "\t\t\"f0:b0:52:06:03:6c\":\"-72\",\n" +
                "\t\t\"e0:10:7f:36:8f:0c\":\"-75\",\n" +
                "\t\t\"f0:b0:52:45:e6:ec\":\"-75\",\n" +
                "\t\t\"f0:b0:52:05:e6:ec\":\"-72\",\n" +
                "\t\t\"f0:b0:52:57:b3:38\":\"-82\",\n" +
                "\t\t\"f0:b0:52:57:b7:f8\":\"-67\",\n" +
                "\t\t\"00:1f:7a:a1:32:f8\":\"-86\",\n" +
                "\t\t\"00:1f:7a:a1:32:f9\":\"-86\",\n" +
                "\t\t\"f0:b0:52:17:b7:f8\":\"-77\",\n" +
                "\t\t\"d0:ee:07:2e:40:00\":\"-73\",\n" +
                "\t\t\"c4:10:8a:01:f1:4c\":\"-85\",\n" +
                "\t\t\"84:18:3a:53:56:1c\":\"-65\",\n" +
                "\t\t\"84:18:3a:13:56:1c\":\"-65\",\n" +
                "\t\t\"28:2c:b2:9f:bb:24\":\"-63\",\n" +
                "\t\t\"f0:b0:52:17:b3:38\":\"-66\",\n" +
                "\t\t\"f0:b0:52:46:03:6c\":\"-72\",\n" +
                "\t\t\"f0:b0:52:06:0d:8c\":\"-69\",\n" +
                "\t\t\"f0:b0:52:46:0d:8c\":\"-69\",\n" +
                "\t\t\"00:11:7f:03:fc:d3\":\"-69\",\n" +
                "\t\t\"f0:b0:52:46:06:2c\":\"-75\",\n" +
                "\t\t\"f0:b0:52:57:e6:5c\":\"-73\",\n" +
                "\t\t\"f0:b0:52:17:e6:5c\":\"-73\",\n" +
                "\t\t\"f0:b0:52:05:da:5c\":\"-74\",\n" +
                "\t\t\"f0:b0:52:57:a7:a8\":\"-66\",\n" +
                "\t\t\"f0:b0:52:57:e3:7c\":\"-75\",\n" +
                "\t\t\"f0:b0:52:17:e3:7c\":\"-75\",\n" +
                "\t\t\"c8:3a:35:44:cc:68\":\"-79\",\n" +
                "\t\t\"88:25:93:52:ed:fc\":\"-72\",\n" +
                "\t\t\"c0:61:18:d9:bf:20\":\"-72\",\n" +
                "\t\t\"f0:b0:52:06:09:dc\":\"-65\",\n" +
                "\t\t\"f0:b0:52:46:09:dc\":\"-66\",\n" +
                "\t\t\"f0:b0:52:17:b9:9c\":\"-78\",\n" +
                "\t\t\"f0:b0:52:57:b9:9c\":\"-77\",\n" +
                "\t\t\"f0:b0:52:57:b5:3c\":\"-73\",\n" +
                "\t\t\"f0:b0:52:17:b5:3c\":\"-73\",\n" +
                "\t\t\"f0:b0:52:17:ba:ac\":\"-78\",\n" +
                "\t\t\"f0:b0:52:57:84:7c\":\"-47\",\n" +
                "\t\t\"f0:b0:52:17:84:7c\":\"-78\",\n" +
                "\t\t\"f0:b0:52:45:f2:3c\":\"-80\",\n" +
                "\t\t\"f0:b0:52:05:f2:3c\":\"-80\",\n" +
                "\t\t\"50:a7:33:60:d5:5c\":\"-84\",\n" +
                "\t\t\"c4:10:8a:41:f1:4c\":\"-86\",\n" +
                "\t\t\"00:1f:7a:a1:32:fd\":\"-85\",\n" +
                "\t\t\"f0:b0:52:45:df:b8\":\"-68\",\n" +
                "\t\t\"f0:b0:52:05:df:b8\":\"-69\",\n" +
                "\t\t\"f0:b0:52:17:cb:dc\":\"-84\",\n" +
                "\t\t\"84:74:2a:b4:60:94\":\"-76\",\n" +
                "\t\t\"f0:b0:52:17:a7:a8\":\"-66\",\n" +
                "\t\t\"f0:b0:52:17:c7:98\":\"-74\",\n" +
                "\t\t\"f0:b0:52:57:c7:98\":\"-73\",\n" +
                "\t\t\"f0:b0:52:17:e5:ec\":\"-78\",\n" +
                "\t\t\"50:a7:33:20:d8:08\":\"-74\",\n" +
                "\t\t\"f0:b0:52:06:01:fc\":\"-79\",\n" +
                "\t\t\"f0:b0:52:57:e5:ec\":\"-80\",\n" +
                "\t\t\"f0:b0:52:17:ba:a8\":\"-76\",\n" +
                "\t\t\"f0:b0:52:57:cb:dc\":\"-86\",\n" +
                "\t\t\"40:a5:ef:00:0d:6c\":\"-69\",\n" +
                "\t\t\"8e:d7:33:f2:47:b6\":\"-72\",\n" +
                "\t\t\"a8:57:4e:b1:f0:c0\":\"-77\",\n" +
                "\t\t\"f0:b0:52:05:f9:8c\":\"-69\",\n" +
                "\t\t\"f0:b0:52:45:f9:8c\":\"-70\",\n" +
                "\t\t\"f0:b0:52:06:05:8c\":\"-74\",\n" +
                "\t\t\"f0:b0:52:46:05:8c\":\"-75\",\n" +
                "\t\t\"16:14:4b:62:13:d5\":\"-79\",\n" +
                "\t\t\"f0:b0:52:17:e3:e8\":\"-77\",\n" +
                "\t\t\"f0:b0:52:17:d4:fc\":\"-86\",\n" +
                "\t\t\"16:14:4b:62:13:d4\":\"-78\",\n" +
                "\t\t\"00:1f:7a:aa:00:27\":\"-87\",\n" +
                "\t\t\"00:1f:7a:aa:00:22\":\"-88\",\n" +
                "\t\t\"24:de:c6:cb:fe:b9\":\"-89\",\n" +
                "\t\t\"f0:b0:52:17:ae:9c\":\"-68\",\n" +
                "\t\t\"f0:b0:52:57:ae:9c\":\"-68\",\n" +
                "\t\t\"f0:b0:52:46:01:fc\":\"-78\",\n" +
                "\t\t\"f0:b0:52:57:ba:ac\":\"-78\",\n" +
                "\t\t\"f0:b0:52:57:a9:7c\":\"-79\",\n" +
                "\t\t\"f0:b0:52:57:e3:e8\":\"-78\",\n" +
                "\t\t\"16:14:4b:62:13:d3\":\"-80\",\n" +
                "\t\t\"00:1f:7a:aa:00:23\":\"-88\"}");
        StringBuffer sb7 = new StringBuffer();
        sb7.append("{\"f0:b0:52:17:b7:fc\":\"-73\",\n" +
                "\"f0:b0:52:57:b7:fc\":\"-73\",\n" +
                "\"f0:b0:52:57:b1:6c\":\"-58\",\n" +
                "\"f0:b0:52:17:b1:6c\":\"-58\",\n" +
                "\"f0:b0:52:06:06:2c\":\"-81\",\n" +
                "\"f0:b0:52:17:b3:3c\":\"-72\",\n" +
                "\"f0:b0:52:57:b3:3c\":\"-73\",\n" +
                "\"f0:b0:52:05:e5:9c\":\"-79\",\n" +
                "\"f0:b0:52:06:07:6c\":\"-74\",\n" +
                "\"f0:b0:52:46:07:6c\":\"-74\",\n" +
                "\"f0:b0:52:05:df:bc\":\"-76\",\n" +
                "\"f0:b0:52:45:df:bc\":\"-82\",\n" +
                "\"e0:10:7f:76:8f:0c\":\"-78\",\n" +
                "\"f0:b0:52:17:e6:3c\":\"-75\",\n" +
                "\"f0:b0:52:57:e6:3c\":\"-73\",\n" +
                "\"f0:b0:52:06:03:6c\":\"-79\",\n" +
                "\"e0:10:7f:36:8f:0c\":\"-77\",\n" +
                "\"f0:b0:52:45:e6:ec\":\"-80\",\n" +
                "\"f0:b0:52:05:e6:ec\":\"-80\",\n" +
                "\"f0:b0:52:57:b7:f8\":\"-57\",\n" +
                "\"00:1f:7a:a1:32:f8\":\"-88\",\n" +
                "\"00:1f:7a:a1:32:f9\":\"-89\",\n" +
                "\"f0:b0:52:17:b7:f8\":\"-58\",\n" +
                "\"d0:ee:07:2e:40:00\":\"-65\",\n" +
                "\"c4:10:8a:01:f1:4c\":\"-86\",\n" +
                "\"84:18:3a:53:56:1c\":\"-69\",\n" +
                "\"84:18:3a:13:56:1c\":\"-67\",\n" +
                "\"28:2c:b2:9f:bb:24\":\"-67\",\n" +
                "\"f0:b0:52:46:03:6c\":\"-84\",\n" +
                "\"f0:b0:52:06:0d:8c\":\"-73\",\n" +
                "\"00:11:7f:03:fc:d3\":\"-69\",\n" +
                "\"f0:b0:52:46:06:2c\":\"-80\",\n" +
                "\"f0:b0:52:57:e6:5c\":\"-78\",\n" +
                "\"f0:b0:52:17:e6:5c\":\"-77\",\n" +
                "\"f0:b0:52:57:a7:a8\":\"-70\",\n" +
                "\"f0:b0:52:17:e3:7c\":\"-84\",\n" +
                "\"f0:b0:52:06:09:dc\":\"-72\",\n" +
                "\"f0:b0:52:46:09:dc\":\"-72\",\n" +
                "\"f0:b0:52:17:b9:9c\":\"-85\",\n" +
                "\"f0:b0:52:57:b9:9c\":\"-85\",\n" +
                "\"f0:b0:52:57:b5:3c\":\"-79\",\n" +
                "\"f0:b0:52:17:b5:3c\":\"-79\",\n" +
                "\"f0:b0:52:57:84:7c\":\"-81\",\n" +
                "\"f0:b0:52:17:84:7c\":\"-81\",\n" +
                "\"f0:b0:52:45:f2:3c\":\"-85\",\n" +
                "\"f0:b0:52:05:f2:3c\":\"-85\",\n" +
                "\"c4:10:8a:41:f1:4c\":\"-86\",\n" +
                "\"f0:b0:52:45:df:b8\":\"-72\",\n" +
                "\"f0:b0:52:05:f9:8c\":\"-74\",\n" +
                "\"f0:b0:52:45:f9:8c\":\"-74\",\n" +
                "\"f0:b0:52:06:05:8c\":\"-76\",\n" +
                "\"f0:b0:52:46:05:8c\":\"-76\",\n" +
                "\"16:14:4b:62:13:d5\":\"-85\",\n" +
                "\"16:14:4b:62:13:d4\":\"-69\",\n" +
                "\"f0:b0:52:17:ae:9c\":\"-69\",\n" +
                "\"f0:b0:52:57:ae:9c\":\"-69\",\n" +
                "\"d4:ee:07:2e:40:00\":\"-67\",\n" +
                "\"f0:b0:52:45:e5:9c\":\"-80\",\n" +
                "\"f0:b0:52:17:a9:7c\":\"-75\",\n" +
                "\"84:18:3a:54:61:7c\":\"-84\",\n" +
                "\"84:18:3a:14:61:7c\":\"-80\",\n" +
                "\"fc:d7:33:f2:47:b6\":\"-68\",\n" +
                "\"c8:3a:35:44:cc:68\":\"-73\",\n" +
                "\"f0:b0:52:17:a7:a8\":\"-68\",\n" +
                "\"84:18:3a:53:91:fc\":\"-78\",\n" +
                "\"e0:10:7f:78:14:fc\":\"-84\",\n" +
                "\"8e:d7:33:f2:47:b6\":\"-71\",\n" +
                "\"84:18:3a:54:61:78\":\"-63\",\n" +
                "\"84:18:3a:14:61:78\":\"-63\",\n" +
                "\"f0:b0:52:45:da:5c\":\"-82\",\n" +
                "\"f0:b0:52:05:da:5c\":\"-82\",\n" +
                "\"16:14:4b:62:13:d2\":\"-69\",\n" +
                "\"f0:b0:52:17:cb:dc\":\"-86\",\n" +
                "\"f0:b0:52:57:cb:dc\":\"-87\",\n" +
                "\"3c:46:d8:1d:03:fc\":\"-77\",\n" +
                "\"96:14:4b:62:44:bc\":\"-75\",\n" +
                "\"ec:6c:9f:34:a4:ca\":\"-75\",\n" +
                "\"ec:26:ca:fb:62:4e\":\"-82\",\n" +
                "\"f0:b0:52:57:a9:7c\":\"-75\",\n" +
                "\"f0:b0:52:06:01:fc\":\"-80\",\n" +
                "\"e0:10:7f:38:14:fc\":\"-83\",\n" +
                "\"e6:14:4b:56:92:91\":\"-69\",\n" +
                "\"96:14:4b:57:d5:4c\":\"-70\",\n" +
                "\"c8:3a:35:24:36:a0\":\"-75\",\n" +
                "\"f0:b0:52:57:b3:38\":\"-65\",\n" +
                "\"f0:b0:52:05:df:b8\":\"-64\",\n" +
                "\"f0:b0:52:17:b3:38\":\"-65\",\n" +
                "\"e6:14:4b:56:92:92\":\"-66\",\n" +
                "\"e6:14:4b:56:92:9f\":\"-68\",\n" +
                "\"50:a7:33:60:d8:08\":\"-72\",\n" +
                "\"f0:b0:52:57:e1:c8\":\"-74\",\n" +
                "\"f0:b0:52:17:e2:c8\":\"-75\",\n" +
                "\"f0:b0:52:17:a7:ac\":\"-80\",\n" +
                "\"c4:10:8a:41:f1:68\":\"-77\",\n" +
                "\"e4:d3:32:47:bd:94\":\"-67\",\n" +
                "\"88:25:93:4e:46:66\":\"-71\",\n" +
                "\"14:75:90:30:ae:00\":\"-74\",\n" +
                "\"6c:19:8f:c4:6d:b4\":\"-74\",\n" +
                "\"84:18:3a:13:91:fc\":\"-78\",\n" +
                "\"96:14:4b:62:44:bd\":\"-75\",\n" +
                "\"f0:b0:52:57:a7:ac\":\"-80\",\n" +
                "\"f0:b0:52:17:e1:cc\":\"-81\",\n" +
                "\"f0:b0:52:57:e1:cc\":\"-81\",\n" +
                "\"f0:b0:52:57:ba:a8\":\"-77\",\n" +
                "\"f0:b0:52:17:ab:7c\":\"-83\",\n" +
                "\"f0:b0:52:17:b9:0c\":\"-84\",\n" +
                "\"f0:b0:52:57:b9:0c\":\"-84\",\n" +
                "\"f0:b0:52:57:ab:7c\":\"-84\",\n" +
                "\"f0:b0:52:57:e3:7c\":\"-85\"}");
        StringBuffer sb8 = new StringBuffer();
        sb8
                .append("{\"d0:ee:07:2e:40:00\":\"-67\",\n" +
                        "\"e0:10:7f:78:14:fc\":\"-70\",\n" +
                        "\"e0:10:7f:38:14:fc\":\"-70\",\n" +
                        "\"c4:10:8a:41:f1:48\":\"-68\",\n" +
                        "\"14:75:90:12:5f:52\":\"-84\",\n" +
                        "\"c4:10:8a:01:f1:48\":\"-67\",\n" +
                        "\"e0:10:7f:38:14:f8\":\"-54\",\n" +
                        "\"e0:10:7f:78:14:f8\":\"-54\",\n" +
                        "\"50:a7:33:60:d5:5c\":\"-75\",\n" +
                        "\"50:a7:33:20:d5:5c\":\"-76\",\n" +
                        "\"84:18:3a:0c:a7:dc\":\"-86\",\n" +
                        "\"f0:b0:52:17:b3:9c\":\"-81\",\n" +
                        "\"f0:b0:52:57:b3:9c\":\"-81\",\n" +
                        "\"84:74:2a:b3:5d:7e\":\"-67\",\n" +
                        "\"d6:14:4b:62:45:50\":\"-66\",\n" +
                        "\"d6:14:4b:62:45:5f\":\"-65\",\n" +
                        "\"d6:14:4b:62:45:5e\":\"-67\",\n" +
                        "\"d6:14:4b:62:45:51\":\"-68\",\n" +
                        "\"84:18:3a:4c:a7:dc\":\"-87\",\n" +
                        "\"f0:b0:52:45:da:5c\":\"-83\",\n" +
                        "\"84:18:3a:53:56:1c\":\"-74\",\n" +
                        "\"84:18:3a:13:56:1c\":\"-74\",\n" +
                        "\"50:a7:33:60:d5:58\":\"-66\",\n" +
                        "\"84:18:3a:13:91:fc\":\"-72\",\n" +
                        "\"f0:b0:52:05:df:dc\":\"-78\",\n" +
                        "\"84:18:3a:53:91:fc\":\"-72\",\n" +
                        "\"f0:b0:52:45:df:dc\":\"-78\",\n" +
                        "\"76:74:2a:b3:5d:7e\":\"-68\",\n" +
                        "\"06:14:4b:57:d5:a3\":\"-76\",\n" +
                        "\"66:14:4b:57:d5:4a\":\"-75\",\n" +
                        "\"06:14:4b:57:d5:a2\":\"-75\",\n" +
                        "\"66:14:4b:57:d5:47\":\"-79\",\n" +
                        "\"c4:10:8a:01:f1:68\":\"-79\",\n" +
                        "\"f0:b0:52:57:a7:a8\":\"-81\",\n" +
                        "\"f0:b0:52:57:cb:dc\":\"-88\",\n" +
                        "\"f0:b0:52:17:e6:5c\":\"-90\",\n" +
                        "\"f0:b0:52:17:cb:dc\":\"-91\",\n" +
                        "\"d4:ee:07:2e:40:00\":\"-61\",\n" +
                        "\"28:2c:b2:9f:bb:24\":\"-71\",\n" +
                        "\"40:a5:ef:00:0d:6c\":\"-74\",\n" +
                        "\"f0:b0:52:17:b3:38\":\"-80\",\n" +
                        "\"c4:10:8a:41:f1:68\":\"-82\",\n" +
                        "\"06:14:4b:57:d5:a1\":\"-75\",\n" +
                        "\"c4:10:8a:41:f1:4c\":\"-82\",\n" +
                        "\"c4:10:8a:01:f1:4c\":\"-82\",\n" +
                        "\"66:14:4b:57:d5:48\":\"-78\",\n" +
                        "\"f0:b0:52:05:f9:8c\":\"-85\",\n" +
                        "\"f0:b0:52:45:f9:8c\":\"-85\",\n" +
                        "\"f0:b0:52:17:b9:9c\":\"-86\",\n" +
                        "\"f0:b0:52:57:b9:9c\":\"-87\"}");
        stringBuffers.add(sb1);
        stringBuffers.add(sb2);
        stringBuffers.add(sb3);
        stringBuffers.add(sb4);
        stringBuffers.add(sb5);
        stringBuffers.add(sb6);
        stringBuffers.add(sb7);

        stringBuffers.add(sb8);


        String result = "";
        for (int i = 0; i < stringBuffers.size(); i++) {
            result = coreAlgorithm.locateOutput(stringBuffers.get(i).toString());
            Log.d("locationValue", result);
            if (!TextUtils.isEmpty(result)) {
                // 不为空，定位成功
                // 定位数据格式{"floor_id":"101010100110","y":"125.234234","x":"48.2323"}
                try {
                    JSONObject jsonObject = new JSONObject(result);
                    floorId = jsonObject.getString("floor_id") == null ? "-1" : jsonObject.getString("floor_id");
                    x = jsonObject.getString("x") == null ? "-1" : jsonObject.getString("x");
                    y = jsonObject.getString("y") == null ? "-1" : jsonObject.getString("y");

                    final PointF pointF = new PointF(Float.valueOf(x), Float.valueOf(y));
                    Log.d("locationValue", floorId + "===" + pointF.toString());
                } catch (JSONException e) {
                    e.printStackTrace();
                }

            }

            Log.i("result", result);
//        }
        }

    }


    private void floorSet() throws Exception {
        String floorName = configName.substring(0, configName.length() - 4);
        InputStream mean = new FileInputStream(new File(parentPath + File.separator + floorName + ".mean"));
        InputStream var = new FileInputStream(new File(parentPath + File.separator + floorName + ".var"));
        InputStream weight = new FileInputStream(new File(parentPath + File.separator + floorName + ".weight"));
        InputStream floor_wifilist = new FileInputStream(new File(parentPath + File.separator + floorName + ".wifilist"));
        coreAlgorithm.floorSet(mean, var, weight, floor_wifilist);
    }
}